package com.ferry.example.spring;

import com.ferry.example.spring.web.UserController;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by daiyong
 */
public class TestConsumer {

	public static void main(String[] args) {
		ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("classpath:/spring-consumer.xml");

		UserController userController = (UserController) classPathXmlApplicationContext.getBean("userController");
		System.out.println(userController.getUserName(">>>>>>>>>>>" + "daiyong"));

		try {
			Thread.sleep(Integer.MAX_VALUE);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}

}
